LowerToUpperCase scrap is a sample scrap translator which is FAT (contains both 68K and PowerPC code). It is an example on how to write a translator which exploits the performance of the Power Macintosh, but at the same time retains full compatibility with the 68K line of Macintosh Computers.
The translator converts 'TEXT' to 'UPPR' (TEXT to upper case). To see it execute, write a simple program which does a GetScrap(h, 'UPPR', &offset) and have 'TEXT' on the clipboard prior to executing that line of code.
IMPORTANT: If you are writing a program from scratch to do this don't forget to do the magic toolbox incantation (InitGraf…) since the Translation Manager needs QuickDraw, Dialogs, etc.
How do you build it?
------------------
From the Macintosh on RISC CD or other developer CD's, install the MPW PPC compiler and other tools into your MPW. Also install the Macintosh Easy Open PowerPC / 68K interfaces and libraries into those directories too.
Once that's done, simply set your current directory to the one containing the source to the LowerToUpperCaseScrap translator and execute the script BuildLowerToUpperCaseScrap.